<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    table{
       
        border-collapse:collapse;
    }
    td
    {
        border:1px solid #ccc;
       width:100px; height:40px;
       text-align:center;

    }
</style>
<body>
    <!-- 38.99乘法表 -->
</body>
<script>
 var tab = "<table>"
           for(var i = 1; i <= 9; i++) {
               tab += "<tr>"
               for(var m = 1; m <= i; m++) {
                   tab +=`<td>${i}*${m}= ${i * m}</td>`
               }
           //   document . write(`<br/>`)
               tab+="</tr>"
            }
               tab+="</table>"
               document.write(tab)
   
      
      
</script>
</html>